// Lean compiler output
// Module: Lake.Util.Cli
// Imports: import Init.Data.Array.Basic public import Init.Data.String.TakeDrop import Init.Data.String.Slice public import Init.Data.String.Search
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lake_longOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___lam__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgD___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_multiShortOption(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___boxed__const__2;
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___redArg(lean_object*);
lean_object* l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgD(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_longOptionOrEq___closed__1;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArgs(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_longOptionOrSpace___closed__3;
LEAN_EXPORT lean_object* l_Lake_option___lam__4___boxed__const__1;
static lean_object* l_Lake_longOptionOrSpace___closed__1;
static lean_object* l_Lake_longOptionOrSpace___closed__9;
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArgs___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___lam__0(lean_object*, uint32_t, lean_object*);
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___lam__7(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_option___boxed__const__1;
static lean_object* l_Lake_longOptionOrEq___closed__0;
LEAN_EXPORT lean_object* l_Lake_option___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___lam__0___boxed(lean_object*);
lean_object* l_String_Slice_Pattern_ForwardCharPredSearcher_instForwardPatternForallCharBool(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___boxed__const__2;
static lean_object* l_Lake_longOptionOrSpace___closed__8;
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___redArg___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq___boxed__const__1;
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
lean_object* l_Char_isWhitespace___boxed(lean_object*);
lean_object* lean_array_to_list(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_consArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgs(lean_object*, lean_object*);
static lean_object* l_Lake_shortOptionWithSpace___closed__0;
static lean_object* l_Lake_shortOptionWithSpace___closed__1;
lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgs___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processOptions___lam__0(lean_object*, lean_object*);
static lean_object* l_Lake_longOptionOrSpace___closed__4;
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_longOptionOrSpace___closed__2;
LEAN_EXPORT lean_object* l_Lake_getArgs___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_processOptions___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___lam__2___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_consArg___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_string_utf8_at_end(lean_object*, lean_object*);
static lean_object* l_Lake_longOptionOrSpace___closed__5;
LEAN_EXPORT lean_object* l_Lake_option(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOption___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_setArgs(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgList_mk(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq___redArg___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___lam__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOption___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_longOptionOrSpace___closed__0;
lean_object* lean_string_length(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___redArg(lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_consArg___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_Lake_option___lam__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgD___lam__0(lean_object*, lean_object*);
uint32_t lean_string_utf8_get_fast(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOption___lam__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgs___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_Slice_Pos_nextn(lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*);
lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___redArg___boxed__const__2;
static lean_object* l_Lake_longOptionOrSpace___closed__6;
LEAN_EXPORT lean_object* l_Lake_longOption___redArg___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_longOption___redArg___boxed__const__2;
LEAN_EXPORT lean_object* l_Lake_longOption___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_processOptions___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_multiShortOption___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArgs___redArg(lean_object*);
static lean_object* l_Lake_longOptionOrSpace___closed__7;
LEAN_EXPORT lean_object* l_Lake_processOptions(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgList_mk___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___redArg___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_setArgs___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___redArg___boxed__const__1;
LEAN_EXPORT lean_object* l_Lake_collectArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgList_mk(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgList_mk___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ArgList_mk(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_1(x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_apply_1(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ArgsT_run_x27___lam__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_3, 0);
lean_inc(x_6);
lean_dec_ref(x_3);
x_7 = lean_alloc_closure((void*)(l_Lake_ArgsT_run_x27___lam__0___boxed), 1, 0);
x_8 = lean_apply_1(x_5, x_4);
x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = lean_alloc_closure((void*)(l_Lake_ArgsT_run_x27___lam__0___boxed), 1, 0);
x_6 = lean_apply_1(x_3, x_2);
x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_getArgs(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_getArgs___redArg(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_setArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 1);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = lean_apply_1(x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_setArgs___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_apply_1(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___lam__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_1);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set_tag(x_1, 0);
lean_ctor_set(x_1, 0, x_6);
return x_1;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_1, 0);
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_1);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_7);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_8);
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 2);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = lean_alloc_closure((void*)(l_Lake_takeArg_x3f___lam__0), 1, 0);
x_5 = lean_apply_2(x_3, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 2);
lean_inc(x_2);
lean_dec_ref(x_1);
x_3 = lean_alloc_closure((void*)(l_Lake_takeArg_x3f___lam__0), 1, 0);
x_4 = lean_apply_2(x_2, lean_box(0), x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgD___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
else
{
uint8_t x_4; 
lean_dec_ref(x_1);
x_4 = !lean_is_exclusive(x_2);
if (x_4 == 0)
{
lean_ctor_set_tag(x_2, 0);
return x_2;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
lean_inc(x_5);
lean_dec(x_2);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_2, 2);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = lean_alloc_closure((void*)(l_Lake_takeArgD___lam__0), 2, 1);
lean_closure_set(x_5, 0, x_3);
x_6 = lean_apply_2(x_4, lean_box(0), x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgD___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 2);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_alloc_closure((void*)(l_Lake_takeArgD___lam__0), 2, 1);
lean_closure_set(x_4, 0, x_2);
x_5 = lean_apply_2(x_3, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgs___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgs(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 2);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = lean_alloc_closure((void*)(l_Lake_takeArgs___lam__0), 1, 0);
x_5 = lean_apply_2(x_3, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgs___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 2);
lean_inc(x_2);
lean_dec_ref(x_1);
x_3 = lean_alloc_closure((void*)(l_Lake_takeArgs___lam__0), 1, 0);
x_4 = lean_apply_2(x_2, lean_box(0), x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_consArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_consArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_2, 2);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = lean_alloc_closure((void*)(l_Lake_consArg___lam__0), 2, 1);
lean_closure_set(x_5, 0, x_3);
x_6 = lean_apply_2(x_4, lean_box(0), x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_consArg___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 2);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_alloc_closure((void*)(l_Lake_consArg___lam__0), 2, 1);
lean_closure_set(x_4, 0, x_2);
x_5 = lean_apply_2(x_3, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint32_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_unsigned_to_nat(1u);
x_5 = lean_string_utf8_get(x_1, x_4);
x_6 = lean_box_uint32(x_5);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lake_shortOptionWithEq___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_9 = lean_ctor_get(x_3, 2);
x_10 = lean_ctor_get(x_3, 1);
lean_dec(x_10);
x_11 = lean_ctor_get(x_3, 0);
lean_dec(x_11);
lean_inc_ref(x_6);
x_12 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_12, 0, x_6);
lean_closure_set(x_12, 1, x_5);
x_13 = lean_unsigned_to_nat(3u);
x_14 = lean_unsigned_to_nat(0u);
x_15 = lean_string_utf8_byte_size(x_6);
lean_inc(x_15);
lean_inc_ref(x_6);
lean_ctor_set(x_3, 2, x_15);
lean_ctor_set(x_3, 1, x_14);
lean_ctor_set(x_3, 0, x_6);
x_16 = l_String_Slice_Pos_nextn(x_3, x_14, x_13);
lean_dec_ref(x_3);
x_17 = lean_string_utf8_extract(x_6, x_16, x_15);
lean_dec(x_15);
lean_dec(x_16);
lean_dec_ref(x_6);
x_18 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_18, 0, x_17);
x_19 = lean_apply_2(x_9, lean_box(0), x_18);
x_20 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_19, x_12);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_21 = lean_ctor_get(x_3, 2);
lean_inc(x_21);
lean_dec(x_3);
lean_inc_ref(x_6);
x_22 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_22, 0, x_6);
lean_closure_set(x_22, 1, x_5);
x_23 = lean_unsigned_to_nat(3u);
x_24 = lean_unsigned_to_nat(0u);
x_25 = lean_string_utf8_byte_size(x_6);
lean_inc(x_25);
lean_inc_ref(x_6);
x_26 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_26, 0, x_6);
lean_ctor_set(x_26, 1, x_24);
lean_ctor_set(x_26, 2, x_25);
x_27 = l_String_Slice_Pos_nextn(x_26, x_24, x_23);
lean_dec_ref(x_26);
x_28 = lean_string_utf8_extract(x_6, x_27, x_25);
lean_dec(x_25);
lean_dec(x_27);
lean_dec_ref(x_6);
x_29 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_29, 0, x_28);
x_30 = lean_apply_2(x_21, lean_box(0), x_29);
x_31 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_30, x_22);
return x_31;
}
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = !lean_is_exclusive(x_2);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_7 = lean_ctor_get(x_2, 2);
x_8 = lean_ctor_get(x_2, 1);
lean_dec(x_8);
x_9 = lean_ctor_get(x_2, 0);
lean_dec(x_9);
lean_inc_ref(x_4);
x_10 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_3);
x_11 = lean_unsigned_to_nat(3u);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_string_utf8_byte_size(x_4);
lean_inc(x_13);
lean_inc_ref(x_4);
lean_ctor_set(x_2, 2, x_13);
lean_ctor_set(x_2, 1, x_12);
lean_ctor_set(x_2, 0, x_4);
x_14 = l_String_Slice_Pos_nextn(x_2, x_12, x_11);
lean_dec_ref(x_2);
x_15 = lean_string_utf8_extract(x_4, x_14, x_13);
lean_dec(x_13);
lean_dec(x_14);
lean_dec_ref(x_4);
x_16 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_16, 0, x_15);
x_17 = lean_apply_2(x_7, lean_box(0), x_16);
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_17, x_10);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_19 = lean_ctor_get(x_2, 2);
lean_inc(x_19);
lean_dec(x_2);
lean_inc_ref(x_4);
x_20 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_20, 0, x_4);
lean_closure_set(x_20, 1, x_3);
x_21 = lean_unsigned_to_nat(3u);
x_22 = lean_unsigned_to_nat(0u);
x_23 = lean_string_utf8_byte_size(x_4);
lean_inc(x_23);
lean_inc_ref(x_4);
x_24 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_24, 0, x_4);
lean_ctor_set(x_24, 1, x_22);
lean_ctor_set(x_24, 2, x_23);
x_25 = l_String_Slice_Pos_nextn(x_24, x_22, x_21);
lean_dec_ref(x_24);
x_26 = lean_string_utf8_extract(x_4, x_25, x_23);
lean_dec(x_23);
lean_dec(x_25);
lean_dec_ref(x_4);
x_27 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_27, 0, x_26);
x_28 = lean_apply_2(x_19, lean_box(0), x_27);
x_29 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_28, x_20);
return x_29;
}
}
}
static lean_object* _init_l_Lake_shortOptionWithSpace___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Char_isWhitespace___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_shortOptionWithSpace___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_shortOptionWithSpace___closed__0;
x_2 = l_String_Slice_Pattern_ForwardCharPredSearcher_instForwardPatternForallCharBool(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = lean_unsigned_to_nat(2u);
x_9 = lean_unsigned_to_nat(0u);
x_10 = lean_string_utf8_byte_size(x_6);
lean_inc(x_10);
lean_inc_ref(x_6);
x_11 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_11, 0, x_6);
lean_ctor_set(x_11, 1, x_9);
lean_ctor_set(x_11, 2, x_10);
x_12 = l_String_Slice_Pos_nextn(x_11, x_9, x_8);
lean_dec_ref(x_11);
lean_inc_ref(x_6);
x_13 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_12);
lean_ctor_set(x_13, 2, x_10);
x_14 = l_Lake_shortOptionWithSpace___closed__0;
x_15 = l_Lake_shortOptionWithSpace___closed__1;
x_16 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_13, x_14, x_15, x_9);
lean_dec_ref(x_13);
x_17 = lean_ctor_get(x_16, 0);
lean_inc_ref(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
x_19 = lean_ctor_get(x_16, 2);
lean_inc(x_19);
lean_dec_ref(x_16);
x_20 = lean_ctor_get(x_3, 2);
lean_inc(x_20);
lean_dec_ref(x_3);
x_21 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_21, 0, x_6);
lean_closure_set(x_21, 1, x_5);
x_22 = lean_string_utf8_extract(x_17, x_18, x_19);
lean_dec(x_19);
lean_dec(x_18);
lean_dec_ref(x_17);
x_23 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_23, 0, x_22);
x_24 = lean_apply_2(x_20, lean_box(0), x_23);
x_25 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_24, x_21);
return x_25;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_unsigned_to_nat(2u);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_utf8_byte_size(x_4);
lean_inc(x_8);
lean_inc_ref(x_4);
x_9 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_9, 0, x_4);
lean_ctor_set(x_9, 1, x_7);
lean_ctor_set(x_9, 2, x_8);
x_10 = l_String_Slice_Pos_nextn(x_9, x_7, x_6);
lean_dec_ref(x_9);
lean_inc_ref(x_4);
x_11 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_11, 0, x_4);
lean_ctor_set(x_11, 1, x_10);
lean_ctor_set(x_11, 2, x_8);
x_12 = l_Lake_shortOptionWithSpace___closed__0;
x_13 = l_Lake_shortOptionWithSpace___closed__1;
x_14 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_11, x_12, x_13, x_7);
lean_dec_ref(x_11);
x_15 = lean_ctor_get(x_14, 0);
lean_inc_ref(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_14, 2);
lean_inc(x_17);
lean_dec_ref(x_14);
x_18 = lean_ctor_get(x_2, 2);
lean_inc(x_18);
lean_dec_ref(x_2);
x_19 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_19, 0, x_4);
lean_closure_set(x_19, 1, x_3);
x_20 = lean_string_utf8_extract(x_15, x_16, x_17);
lean_dec(x_17);
lean_dec(x_16);
lean_dec_ref(x_15);
x_21 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_21, 0, x_20);
x_22 = lean_apply_2(x_18, lean_box(0), x_21);
x_23 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_22, x_19);
return x_23;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_9 = lean_ctor_get(x_3, 2);
x_10 = lean_ctor_get(x_3, 1);
lean_dec(x_10);
x_11 = lean_ctor_get(x_3, 0);
lean_dec(x_11);
lean_inc_ref(x_6);
x_12 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_12, 0, x_6);
lean_closure_set(x_12, 1, x_5);
x_13 = lean_unsigned_to_nat(2u);
x_14 = lean_unsigned_to_nat(0u);
x_15 = lean_string_utf8_byte_size(x_6);
lean_inc(x_15);
lean_inc_ref(x_6);
lean_ctor_set(x_3, 2, x_15);
lean_ctor_set(x_3, 1, x_14);
lean_ctor_set(x_3, 0, x_6);
x_16 = l_String_Slice_Pos_nextn(x_3, x_14, x_13);
lean_dec_ref(x_3);
x_17 = lean_string_utf8_extract(x_6, x_16, x_15);
lean_dec(x_15);
lean_dec(x_16);
lean_dec_ref(x_6);
x_18 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_18, 0, x_17);
x_19 = lean_apply_2(x_9, lean_box(0), x_18);
x_20 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_19, x_12);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_21 = lean_ctor_get(x_3, 2);
lean_inc(x_21);
lean_dec(x_3);
lean_inc_ref(x_6);
x_22 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_22, 0, x_6);
lean_closure_set(x_22, 1, x_5);
x_23 = lean_unsigned_to_nat(2u);
x_24 = lean_unsigned_to_nat(0u);
x_25 = lean_string_utf8_byte_size(x_6);
lean_inc(x_25);
lean_inc_ref(x_6);
x_26 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_26, 0, x_6);
lean_ctor_set(x_26, 1, x_24);
lean_ctor_set(x_26, 2, x_25);
x_27 = l_String_Slice_Pos_nextn(x_26, x_24, x_23);
lean_dec_ref(x_26);
x_28 = lean_string_utf8_extract(x_6, x_27, x_25);
lean_dec(x_25);
lean_dec(x_27);
lean_dec_ref(x_6);
x_29 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_29, 0, x_28);
x_30 = lean_apply_2(x_21, lean_box(0), x_29);
x_31 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_30, x_22);
return x_31;
}
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = !lean_is_exclusive(x_2);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_7 = lean_ctor_get(x_2, 2);
x_8 = lean_ctor_get(x_2, 1);
lean_dec(x_8);
x_9 = lean_ctor_get(x_2, 0);
lean_dec(x_9);
lean_inc_ref(x_4);
x_10 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_3);
x_11 = lean_unsigned_to_nat(2u);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_string_utf8_byte_size(x_4);
lean_inc(x_13);
lean_inc_ref(x_4);
lean_ctor_set(x_2, 2, x_13);
lean_ctor_set(x_2, 1, x_12);
lean_ctor_set(x_2, 0, x_4);
x_14 = l_String_Slice_Pos_nextn(x_2, x_12, x_11);
lean_dec_ref(x_2);
x_15 = lean_string_utf8_extract(x_4, x_14, x_13);
lean_dec(x_13);
lean_dec(x_14);
lean_dec_ref(x_4);
x_16 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_16, 0, x_15);
x_17 = lean_apply_2(x_7, lean_box(0), x_16);
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_17, x_10);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_19 = lean_ctor_get(x_2, 2);
lean_inc(x_19);
lean_dec(x_2);
lean_inc_ref(x_4);
x_20 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__0___boxed), 3, 2);
lean_closure_set(x_20, 0, x_4);
lean_closure_set(x_20, 1, x_3);
x_21 = lean_unsigned_to_nat(2u);
x_22 = lean_unsigned_to_nat(0u);
x_23 = lean_string_utf8_byte_size(x_4);
lean_inc(x_23);
lean_inc_ref(x_4);
x_24 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_24, 0, x_4);
lean_ctor_set(x_24, 1, x_22);
lean_ctor_set(x_24, 2, x_23);
x_25 = l_String_Slice_Pos_nextn(x_24, x_22, x_21);
lean_dec_ref(x_24);
x_26 = lean_string_utf8_extract(x_4, x_25, x_23);
lean_dec(x_23);
lean_dec(x_25);
lean_dec_ref(x_4);
x_27 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_27, 0, x_26);
x_28 = lean_apply_2(x_19, lean_box(0), x_27);
x_29 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_28, x_20);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_string_utf8_next_fast(x_1, x_2);
x_7 = l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg(x_3, x_4, x_1, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg___lam__0(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_string_utf8_at_end(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; uint32_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_inc(x_2);
lean_inc(x_4);
lean_inc_ref(x_3);
x_7 = lean_alloc_closure((void*)(l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg___lam__0___boxed), 5, 4);
lean_closure_set(x_7, 0, x_3);
lean_closure_set(x_7, 1, x_4);
lean_closure_set(x_7, 2, x_1);
lean_closure_set(x_7, 3, x_2);
x_8 = lean_string_utf8_get_fast(x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
x_9 = lean_box_uint32(x_8);
x_10 = lean_apply_1(x_2, x_9);
x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_10, x_7);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_4);
lean_dec_ref(x_3);
lean_dec(x_2);
x_12 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_12);
lean_dec_ref(x_1);
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec_ref(x_12);
x_14 = lean_box(0);
x_15 = lean_apply_2(x_13, lean_box(0), x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_multiShortOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_unsigned_to_nat(1u);
x_6 = l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_multiShortOption___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_unsigned_to_nat(1u);
x_5 = l___private_Lake_Util_Cli_0__Lake_multiShortOption_loop___redArg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_utf8_extract(x_1, x_5, x_2);
x_7 = lean_apply_1(x_3, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_1);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
lean_dec(x_1);
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_6);
x_8 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_longOptionOrSpace___closed__1;
x_2 = l_Lake_longOptionOrSpace___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lake_longOptionOrSpace___closed__5;
x_2 = l_Lake_longOptionOrSpace___closed__4;
x_3 = l_Lake_longOptionOrSpace___closed__3;
x_4 = l_Lake_longOptionOrSpace___closed__2;
x_5 = l_Lake_longOptionOrSpace___closed__7;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_longOptionOrSpace___closed__6;
x_2 = l_Lake_longOptionOrSpace___closed__8;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_longOptionOrSpace___lam__0(x_1, x_2, x_3, x_4);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_longOptionOrSpace___lam__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_20 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__2), 4, 0);
x_21 = lean_unsigned_to_nat(0u);
x_22 = lean_string_utf8_byte_size(x_6);
lean_inc(x_22);
lean_inc_ref(x_6);
x_23 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_23, 0, x_6);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
x_24 = lean_box(0);
x_25 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__1___boxed), 4, 1);
lean_closure_set(x_25, 0, x_24);
x_26 = l_Lake_longOptionOrSpace___closed__9;
x_27 = l_Lake_longOptionOrSpace___boxed__const__1;
x_28 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_28, 0, x_23);
lean_closure_set(x_28, 1, x_27);
x_29 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_28, x_26, x_20, x_21, x_24, x_25);
if (lean_obj_tag(x_29) == 0)
{
x_7 = x_22;
goto block_19;
}
else
{
lean_object* x_30; 
lean_dec(x_22);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
lean_dec_ref(x_29);
x_7 = x_30;
goto block_19;
}
block_19:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_string_utf8_byte_size(x_6);
x_9 = lean_nat_dec_eq(x_7, x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_10 = lean_ctor_get(x_2, 1);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = lean_ctor_get(x_3, 2);
lean_inc(x_11);
lean_dec_ref(x_3);
lean_inc(x_7);
lean_inc_ref(x_6);
x_12 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__0___boxed), 4, 3);
lean_closure_set(x_12, 0, x_6);
lean_closure_set(x_12, 1, x_7);
lean_closure_set(x_12, 2, x_5);
x_13 = lean_string_utf8_next_fast(x_6, x_7);
lean_dec(x_7);
x_14 = lean_string_utf8_extract(x_6, x_13, x_8);
lean_dec(x_8);
lean_dec(x_13);
lean_dec_ref(x_6);
x_15 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_15, 0, x_14);
x_16 = lean_apply_2(x_11, lean_box(0), x_15);
x_17 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_12);
return x_17;
}
else
{
lean_object* x_18; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_18 = lean_apply_1(x_5, x_6);
return x_18;
}
}
}
}
static lean_object* _init_l_Lake_longOptionOrSpace___redArg___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_18 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__2), 4, 0);
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_string_utf8_byte_size(x_4);
lean_inc(x_20);
lean_inc_ref(x_4);
x_21 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_21, 0, x_4);
lean_ctor_set(x_21, 1, x_19);
lean_ctor_set(x_21, 2, x_20);
x_22 = lean_box(0);
x_23 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__1___boxed), 4, 1);
lean_closure_set(x_23, 0, x_22);
x_24 = l_Lake_longOptionOrSpace___closed__9;
x_25 = l_Lake_longOptionOrSpace___redArg___boxed__const__1;
x_26 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_26, 0, x_21);
lean_closure_set(x_26, 1, x_25);
x_27 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_26, x_24, x_18, x_19, x_22, x_23);
if (lean_obj_tag(x_27) == 0)
{
x_5 = x_20;
goto block_17;
}
else
{
lean_object* x_28; 
lean_dec(x_20);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec_ref(x_27);
x_5 = x_28;
goto block_17;
}
block_17:
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_string_utf8_byte_size(x_4);
x_7 = lean_nat_dec_eq(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_ctor_get(x_2, 2);
lean_inc(x_9);
lean_dec_ref(x_2);
lean_inc(x_5);
lean_inc_ref(x_4);
x_10 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__0___boxed), 4, 3);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_5);
lean_closure_set(x_10, 2, x_3);
x_11 = lean_string_utf8_next_fast(x_4, x_5);
lean_dec(x_5);
x_12 = lean_string_utf8_extract(x_4, x_11, x_6);
lean_dec(x_6);
lean_dec(x_11);
lean_dec_ref(x_4);
x_13 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_13, 0, x_12);
x_14 = lean_apply_2(x_9, lean_box(0), x_13);
x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_14, x_10);
return x_15;
}
else
{
lean_object* x_16; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_16 = lean_apply_1(x_3, x_4);
return x_16;
}
}
}
}
static lean_object* _init_l_Lake_longOptionOrEq___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__2), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_longOptionOrEq___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__1___boxed), 4, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_longOptionOrEq___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 61;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_20 = l_Lake_longOptionOrEq___closed__0;
x_21 = lean_unsigned_to_nat(0u);
x_22 = lean_string_utf8_byte_size(x_6);
lean_inc(x_22);
lean_inc_ref(x_6);
x_23 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_23, 0, x_6);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
x_24 = lean_box(0);
x_25 = l_Lake_longOptionOrEq___closed__1;
x_26 = l_Lake_longOptionOrSpace___closed__9;
x_27 = l_Lake_longOptionOrEq___boxed__const__1;
x_28 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_28, 0, x_23);
lean_closure_set(x_28, 1, x_27);
x_29 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_28, x_26, x_20, x_21, x_24, x_25);
if (lean_obj_tag(x_29) == 0)
{
x_7 = x_22;
goto block_19;
}
else
{
lean_object* x_30; 
lean_dec(x_22);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
lean_dec_ref(x_29);
x_7 = x_30;
goto block_19;
}
block_19:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_string_utf8_byte_size(x_6);
x_9 = lean_nat_dec_eq(x_7, x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_10 = lean_ctor_get(x_2, 1);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = lean_ctor_get(x_3, 2);
lean_inc(x_11);
lean_dec_ref(x_3);
lean_inc(x_7);
lean_inc_ref(x_6);
x_12 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__0___boxed), 4, 3);
lean_closure_set(x_12, 0, x_6);
lean_closure_set(x_12, 1, x_7);
lean_closure_set(x_12, 2, x_5);
x_13 = lean_string_utf8_next_fast(x_6, x_7);
lean_dec(x_7);
x_14 = lean_string_utf8_extract(x_6, x_13, x_8);
lean_dec(x_8);
lean_dec(x_13);
lean_dec_ref(x_6);
x_15 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_15, 0, x_14);
x_16 = lean_apply_2(x_11, lean_box(0), x_15);
x_17 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_12);
return x_17;
}
else
{
lean_object* x_18; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_18 = lean_apply_1(x_5, x_6);
return x_18;
}
}
}
}
static lean_object* _init_l_Lake_longOptionOrEq___redArg___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 61;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_18 = l_Lake_longOptionOrEq___closed__0;
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_string_utf8_byte_size(x_4);
lean_inc(x_20);
lean_inc_ref(x_4);
x_21 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_21, 0, x_4);
lean_ctor_set(x_21, 1, x_19);
lean_ctor_set(x_21, 2, x_20);
x_22 = lean_box(0);
x_23 = l_Lake_longOptionOrEq___closed__1;
x_24 = l_Lake_longOptionOrSpace___closed__9;
x_25 = l_Lake_longOptionOrEq___redArg___boxed__const__1;
x_26 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_26, 0, x_21);
lean_closure_set(x_26, 1, x_25);
x_27 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_26, x_24, x_18, x_19, x_22, x_23);
if (lean_obj_tag(x_27) == 0)
{
x_5 = x_20;
goto block_17;
}
else
{
lean_object* x_28; 
lean_dec(x_20);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec_ref(x_27);
x_5 = x_28;
goto block_17;
}
block_17:
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_string_utf8_byte_size(x_4);
x_7 = lean_nat_dec_eq(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_ctor_get(x_2, 2);
lean_inc(x_9);
lean_dec_ref(x_2);
lean_inc(x_5);
lean_inc_ref(x_4);
x_10 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__0___boxed), 4, 3);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_5);
lean_closure_set(x_10, 2, x_3);
x_11 = lean_string_utf8_next_fast(x_4, x_5);
lean_dec(x_5);
x_12 = lean_string_utf8_extract(x_4, x_11, x_6);
lean_dec(x_6);
lean_dec(x_11);
lean_dec_ref(x_4);
x_13 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_13, 0, x_12);
x_14 = lean_apply_2(x_9, lean_box(0), x_13);
x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_14, x_10);
return x_15;
}
else
{
lean_object* x_16; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_16 = lean_apply_1(x_3, x_4);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_string_utf8_extract(x_1, x_2, x_3);
x_7 = lean_apply_1(x_4, x_6);
return x_7;
}
}
static lean_object* _init_l_Lake_longOption___lam__2___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_longOption___lam__5(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_string_utf8_extract(x_1, x_8, x_2);
x_21 = lean_string_utf8_byte_size(x_9);
lean_inc(x_21);
lean_inc_ref(x_9);
x_22 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_22, 0, x_9);
lean_ctor_set(x_22, 1, x_8);
lean_ctor_set(x_22, 2, x_21);
x_23 = lean_box(0);
x_24 = l_Lake_longOptionOrEq___closed__1;
x_25 = l_Lake_longOptionOrSpace___closed__9;
x_26 = l_Lake_longOption___lam__2___boxed__const__1;
x_27 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_27, 0, x_22);
lean_closure_set(x_27, 1, x_26);
x_28 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_27, x_25, x_6, x_8, x_23, x_24);
if (lean_obj_tag(x_28) == 0)
{
x_10 = x_21;
goto block_20;
}
else
{
lean_object* x_29; 
lean_dec(x_21);
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_10 = x_29;
goto block_20;
}
block_20:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_string_utf8_byte_size(x_9);
x_12 = lean_nat_dec_eq(x_10, x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_inc(x_10);
lean_inc_ref(x_9);
x_13 = lean_alloc_closure((void*)(l_Lake_longOption___lam__5___boxed), 5, 4);
lean_closure_set(x_13, 0, x_9);
lean_closure_set(x_13, 1, x_8);
lean_closure_set(x_13, 2, x_10);
lean_closure_set(x_13, 3, x_3);
x_14 = lean_string_utf8_next_fast(x_9, x_10);
lean_dec(x_10);
x_15 = lean_string_utf8_extract(x_9, x_14, x_11);
lean_dec(x_11);
lean_dec(x_14);
lean_dec_ref(x_9);
x_16 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_16, 0, x_15);
x_17 = lean_apply_2(x_4, lean_box(0), x_16);
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_17, x_13);
return x_18;
}
else
{
lean_object* x_19; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_4);
x_19 = lean_apply_1(x_3, x_9);
return x_19;
}
}
}
}
static lean_object* _init_l_Lake_longOption___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_longOption___boxed__const__2() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 61;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_longOption___lam__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_20; lean_object* x_21; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_20 = l_Lake_longOptionOrEq___closed__0;
x_42 = lean_unsigned_to_nat(0u);
x_43 = lean_string_utf8_byte_size(x_6);
lean_inc(x_43);
lean_inc_ref(x_6);
x_44 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_44, 0, x_6);
lean_ctor_set(x_44, 1, x_42);
lean_ctor_set(x_44, 2, x_43);
x_45 = lean_box(0);
x_46 = l_Lake_longOptionOrEq___closed__1;
x_47 = l_Lake_longOptionOrSpace___closed__9;
x_48 = l_Lake_longOption___boxed__const__2;
x_49 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_49, 0, x_44);
lean_closure_set(x_49, 1, x_48);
x_50 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_49, x_47, x_20, x_42, x_45, x_46);
if (lean_obj_tag(x_50) == 0)
{
x_21 = x_43;
goto block_41;
}
else
{
lean_object* x_51; 
lean_dec(x_43);
x_51 = lean_ctor_get(x_50, 0);
lean_inc(x_51);
lean_dec_ref(x_50);
x_21 = x_51;
goto block_41;
}
block_19:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_string_utf8_byte_size(x_6);
x_9 = lean_nat_dec_eq(x_7, x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_10 = lean_ctor_get(x_2, 1);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = lean_ctor_get(x_3, 2);
lean_inc(x_11);
lean_dec_ref(x_3);
lean_inc(x_7);
lean_inc_ref(x_6);
x_12 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__0___boxed), 4, 3);
lean_closure_set(x_12, 0, x_6);
lean_closure_set(x_12, 1, x_7);
lean_closure_set(x_12, 2, x_5);
x_13 = lean_string_utf8_next_fast(x_6, x_7);
lean_dec(x_7);
x_14 = lean_string_utf8_extract(x_6, x_13, x_8);
lean_dec(x_8);
lean_dec(x_13);
lean_dec_ref(x_6);
x_15 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_15, 0, x_14);
x_16 = lean_apply_2(x_11, lean_box(0), x_15);
x_17 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_12);
return x_17;
}
else
{
lean_object* x_18; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_18 = lean_apply_1(x_5, x_6);
return x_18;
}
}
block_41:
{
lean_object* x_22; uint8_t x_23; 
x_22 = lean_string_utf8_byte_size(x_6);
x_23 = lean_nat_dec_eq(x_21, x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_24 = lean_ctor_get(x_2, 1);
lean_inc(x_24);
lean_dec_ref(x_2);
x_25 = lean_ctor_get(x_3, 2);
lean_inc(x_25);
lean_dec_ref(x_3);
lean_inc(x_24);
lean_inc(x_25);
lean_inc(x_21);
lean_inc_ref(x_6);
x_26 = lean_alloc_closure((void*)(l_Lake_longOption___lam__2___boxed), 7, 6);
lean_closure_set(x_26, 0, x_6);
lean_closure_set(x_26, 1, x_21);
lean_closure_set(x_26, 2, x_5);
lean_closure_set(x_26, 3, x_25);
lean_closure_set(x_26, 4, x_24);
lean_closure_set(x_26, 5, x_20);
x_27 = lean_string_utf8_next_fast(x_6, x_21);
lean_dec(x_21);
x_28 = lean_string_utf8_extract(x_6, x_27, x_22);
lean_dec(x_22);
lean_dec(x_27);
lean_dec_ref(x_6);
x_29 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_29, 0, x_28);
x_30 = lean_apply_2(x_25, lean_box(0), x_29);
x_31 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_30, x_26);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
lean_dec(x_21);
x_32 = lean_unsigned_to_nat(0u);
lean_inc(x_22);
lean_inc_ref(x_6);
x_33 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_33, 0, x_6);
lean_ctor_set(x_33, 1, x_32);
lean_ctor_set(x_33, 2, x_22);
x_34 = lean_box(0);
x_35 = l_Lake_longOptionOrEq___closed__1;
x_36 = l_Lake_longOptionOrSpace___closed__9;
x_37 = l_Lake_longOption___boxed__const__1;
x_38 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_38, 0, x_33);
lean_closure_set(x_38, 1, x_37);
x_39 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_38, x_36, x_20, x_32, x_34, x_35);
if (lean_obj_tag(x_39) == 0)
{
x_7 = x_22;
goto block_19;
}
else
{
lean_object* x_40; 
lean_dec(x_22);
x_40 = lean_ctor_get(x_39, 0);
lean_inc(x_40);
lean_dec_ref(x_39);
x_7 = x_40;
goto block_19;
}
}
}
}
}
static lean_object* _init_l_Lake_longOption___redArg___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_longOption___redArg___boxed__const__2() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 61;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_18; lean_object* x_19; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_18 = l_Lake_longOptionOrEq___closed__0;
x_40 = lean_unsigned_to_nat(0u);
x_41 = lean_string_utf8_byte_size(x_4);
lean_inc(x_41);
lean_inc_ref(x_4);
x_42 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_42, 0, x_4);
lean_ctor_set(x_42, 1, x_40);
lean_ctor_set(x_42, 2, x_41);
x_43 = lean_box(0);
x_44 = l_Lake_longOptionOrEq___closed__1;
x_45 = l_Lake_longOptionOrSpace___closed__9;
x_46 = l_Lake_longOption___redArg___boxed__const__2;
x_47 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_47, 0, x_42);
lean_closure_set(x_47, 1, x_46);
x_48 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_47, x_45, x_18, x_40, x_43, x_44);
if (lean_obj_tag(x_48) == 0)
{
x_19 = x_41;
goto block_39;
}
else
{
lean_object* x_49; 
lean_dec(x_41);
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
lean_dec_ref(x_48);
x_19 = x_49;
goto block_39;
}
block_17:
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_string_utf8_byte_size(x_4);
x_7 = lean_nat_dec_eq(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_ctor_get(x_2, 2);
lean_inc(x_9);
lean_dec_ref(x_2);
lean_inc(x_5);
lean_inc_ref(x_4);
x_10 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___lam__0___boxed), 4, 3);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_5);
lean_closure_set(x_10, 2, x_3);
x_11 = lean_string_utf8_next_fast(x_4, x_5);
lean_dec(x_5);
x_12 = lean_string_utf8_extract(x_4, x_11, x_6);
lean_dec(x_6);
lean_dec(x_11);
lean_dec_ref(x_4);
x_13 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_13, 0, x_12);
x_14 = lean_apply_2(x_9, lean_box(0), x_13);
x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_14, x_10);
return x_15;
}
else
{
lean_object* x_16; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_16 = lean_apply_1(x_3, x_4);
return x_16;
}
}
block_39:
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_string_utf8_byte_size(x_4);
x_21 = lean_nat_dec_eq(x_19, x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_22 = lean_ctor_get(x_1, 1);
lean_inc(x_22);
lean_dec_ref(x_1);
x_23 = lean_ctor_get(x_2, 2);
lean_inc(x_23);
lean_dec_ref(x_2);
lean_inc(x_22);
lean_inc(x_23);
lean_inc(x_19);
lean_inc_ref(x_4);
x_24 = lean_alloc_closure((void*)(l_Lake_longOption___lam__2___boxed), 7, 6);
lean_closure_set(x_24, 0, x_4);
lean_closure_set(x_24, 1, x_19);
lean_closure_set(x_24, 2, x_3);
lean_closure_set(x_24, 3, x_23);
lean_closure_set(x_24, 4, x_22);
lean_closure_set(x_24, 5, x_18);
x_25 = lean_string_utf8_next_fast(x_4, x_19);
lean_dec(x_19);
x_26 = lean_string_utf8_extract(x_4, x_25, x_20);
lean_dec(x_20);
lean_dec(x_25);
lean_dec_ref(x_4);
x_27 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_27, 0, x_26);
x_28 = lean_apply_2(x_23, lean_box(0), x_27);
x_29 = lean_apply_4(x_22, lean_box(0), lean_box(0), x_28, x_24);
return x_29;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_19);
x_30 = lean_unsigned_to_nat(0u);
lean_inc(x_20);
lean_inc_ref(x_4);
x_31 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_31, 0, x_4);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_31, 2, x_20);
x_32 = lean_box(0);
x_33 = l_Lake_longOptionOrEq___closed__1;
x_34 = l_Lake_longOptionOrSpace___closed__9;
x_35 = l_Lake_longOption___redArg___boxed__const__1;
x_36 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_36, 0, x_31);
lean_closure_set(x_36, 1, x_35);
x_37 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_36, x_34, x_18, x_30, x_32, x_33);
if (lean_obj_tag(x_37) == 0)
{
x_5 = x_20;
goto block_17;
}
else
{
lean_object* x_38; 
lean_dec(x_20);
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
lean_dec_ref(x_37);
x_5 = x_38;
goto block_17;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_shortOption___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint32_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_unsigned_to_nat(1u);
x_5 = lean_string_utf8_get(x_1, x_4);
x_6 = lean_box_uint32(x_5);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOption___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lake_shortOption___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_string_length(x_7);
x_9 = lean_unsigned_to_nat(2u);
x_10 = lean_nat_dec_eq(x_8, x_9);
lean_dec(x_8);
if (x_10 == 0)
{
uint32_t x_11; uint32_t x_12; uint8_t x_13; 
x_11 = lean_string_utf8_get(x_7, x_9);
x_12 = 61;
x_13 = lean_uint32_dec_eq(x_11, x_12);
if (x_13 == 0)
{
uint32_t x_14; uint8_t x_15; 
x_14 = 32;
x_15 = lean_uint32_dec_eq(x_11, x_14);
if (x_15 == 0)
{
lean_object* x_16; 
lean_dec(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_16 = lean_apply_1(x_6, x_7);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
lean_dec(x_6);
x_17 = lean_ctor_get(x_2, 1);
lean_inc(x_17);
lean_dec_ref(x_2);
x_18 = lean_unsigned_to_nat(0u);
x_19 = lean_string_utf8_byte_size(x_7);
lean_inc(x_19);
lean_inc_ref(x_7);
x_20 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_20, 0, x_7);
lean_ctor_set(x_20, 1, x_18);
lean_ctor_set(x_20, 2, x_19);
x_21 = l_String_Slice_Pos_nextn(x_20, x_18, x_9);
lean_dec_ref(x_20);
lean_inc_ref(x_7);
x_22 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_22, 0, x_7);
lean_ctor_set(x_22, 1, x_21);
lean_ctor_set(x_22, 2, x_19);
x_23 = l_Lake_shortOptionWithSpace___closed__0;
x_24 = l_Lake_shortOptionWithSpace___closed__1;
x_25 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_22, x_23, x_24, x_18);
lean_dec_ref(x_22);
x_26 = lean_ctor_get(x_25, 0);
lean_inc_ref(x_26);
x_27 = lean_ctor_get(x_25, 1);
lean_inc(x_27);
x_28 = lean_ctor_get(x_25, 2);
lean_inc(x_28);
lean_dec_ref(x_25);
x_29 = lean_ctor_get(x_3, 2);
lean_inc(x_29);
lean_dec_ref(x_3);
x_30 = lean_alloc_closure((void*)(l_Lake_shortOption___lam__0___boxed), 3, 2);
lean_closure_set(x_30, 0, x_7);
lean_closure_set(x_30, 1, x_5);
x_31 = lean_string_utf8_extract(x_26, x_27, x_28);
lean_dec(x_28);
lean_dec(x_27);
lean_dec_ref(x_26);
x_32 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_32, 0, x_31);
x_33 = lean_apply_2(x_29, lean_box(0), x_32);
x_34 = lean_apply_4(x_17, lean_box(0), lean_box(0), x_33, x_30);
return x_34;
}
}
else
{
lean_object* x_35; uint8_t x_36; 
lean_dec(x_6);
x_35 = lean_ctor_get(x_2, 1);
lean_inc(x_35);
lean_dec_ref(x_2);
x_36 = !lean_is_exclusive(x_3);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_37 = lean_ctor_get(x_3, 2);
x_38 = lean_ctor_get(x_3, 1);
lean_dec(x_38);
x_39 = lean_ctor_get(x_3, 0);
lean_dec(x_39);
lean_inc_ref(x_7);
x_40 = lean_alloc_closure((void*)(l_Lake_shortOption___lam__0___boxed), 3, 2);
lean_closure_set(x_40, 0, x_7);
lean_closure_set(x_40, 1, x_5);
x_41 = lean_unsigned_to_nat(3u);
x_42 = lean_unsigned_to_nat(0u);
x_43 = lean_string_utf8_byte_size(x_7);
lean_inc(x_43);
lean_inc_ref(x_7);
lean_ctor_set(x_3, 2, x_43);
lean_ctor_set(x_3, 1, x_42);
lean_ctor_set(x_3, 0, x_7);
x_44 = l_String_Slice_Pos_nextn(x_3, x_42, x_41);
lean_dec_ref(x_3);
x_45 = lean_string_utf8_extract(x_7, x_44, x_43);
lean_dec(x_43);
lean_dec(x_44);
lean_dec_ref(x_7);
x_46 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_46, 0, x_45);
x_47 = lean_apply_2(x_37, lean_box(0), x_46);
x_48 = lean_apply_4(x_35, lean_box(0), lean_box(0), x_47, x_40);
return x_48;
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_49 = lean_ctor_get(x_3, 2);
lean_inc(x_49);
lean_dec(x_3);
lean_inc_ref(x_7);
x_50 = lean_alloc_closure((void*)(l_Lake_shortOption___lam__0___boxed), 3, 2);
lean_closure_set(x_50, 0, x_7);
lean_closure_set(x_50, 1, x_5);
x_51 = lean_unsigned_to_nat(3u);
x_52 = lean_unsigned_to_nat(0u);
x_53 = lean_string_utf8_byte_size(x_7);
lean_inc(x_53);
lean_inc_ref(x_7);
x_54 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_54, 0, x_7);
lean_ctor_set(x_54, 1, x_52);
lean_ctor_set(x_54, 2, x_53);
x_55 = l_String_Slice_Pos_nextn(x_54, x_52, x_51);
lean_dec_ref(x_54);
x_56 = lean_string_utf8_extract(x_7, x_55, x_53);
lean_dec(x_53);
lean_dec(x_55);
lean_dec_ref(x_7);
x_57 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_57, 0, x_56);
x_58 = lean_apply_2(x_49, lean_box(0), x_57);
x_59 = lean_apply_4(x_35, lean_box(0), lean_box(0), x_58, x_50);
return x_59;
}
}
}
else
{
lean_object* x_60; uint32_t x_61; lean_object* x_62; lean_object* x_63; 
lean_dec(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_60 = lean_unsigned_to_nat(1u);
x_61 = lean_string_utf8_get(x_7, x_60);
lean_dec_ref(x_7);
x_62 = lean_box_uint32(x_61);
x_63 = lean_apply_1(x_5, x_62);
return x_63;
}
}
}
LEAN_EXPORT lean_object* l_Lake_shortOption___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_string_length(x_5);
x_7 = lean_unsigned_to_nat(2u);
x_8 = lean_nat_dec_eq(x_6, x_7);
lean_dec(x_6);
if (x_8 == 0)
{
uint32_t x_9; uint32_t x_10; uint8_t x_11; 
x_9 = lean_string_utf8_get(x_5, x_7);
x_10 = 61;
x_11 = lean_uint32_dec_eq(x_9, x_10);
if (x_11 == 0)
{
uint32_t x_12; uint8_t x_13; 
x_12 = 32;
x_13 = lean_uint32_dec_eq(x_9, x_12);
if (x_13 == 0)
{
lean_object* x_14; 
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_14 = lean_apply_1(x_4, x_5);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
lean_dec(x_4);
x_15 = lean_ctor_get(x_1, 1);
lean_inc(x_15);
lean_dec_ref(x_1);
x_16 = lean_unsigned_to_nat(0u);
x_17 = lean_string_utf8_byte_size(x_5);
lean_inc(x_17);
lean_inc_ref(x_5);
x_18 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_18, 0, x_5);
lean_ctor_set(x_18, 1, x_16);
lean_ctor_set(x_18, 2, x_17);
x_19 = l_String_Slice_Pos_nextn(x_18, x_16, x_7);
lean_dec_ref(x_18);
lean_inc_ref(x_5);
x_20 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_20, 0, x_5);
lean_ctor_set(x_20, 1, x_19);
lean_ctor_set(x_20, 2, x_17);
x_21 = l_Lake_shortOptionWithSpace___closed__0;
x_22 = l_Lake_shortOptionWithSpace___closed__1;
x_23 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_20, x_21, x_22, x_16);
lean_dec_ref(x_20);
x_24 = lean_ctor_get(x_23, 0);
lean_inc_ref(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
x_26 = lean_ctor_get(x_23, 2);
lean_inc(x_26);
lean_dec_ref(x_23);
x_27 = lean_ctor_get(x_2, 2);
lean_inc(x_27);
lean_dec_ref(x_2);
x_28 = lean_alloc_closure((void*)(l_Lake_shortOption___lam__0___boxed), 3, 2);
lean_closure_set(x_28, 0, x_5);
lean_closure_set(x_28, 1, x_3);
x_29 = lean_string_utf8_extract(x_24, x_25, x_26);
lean_dec(x_26);
lean_dec(x_25);
lean_dec_ref(x_24);
x_30 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_30, 0, x_29);
x_31 = lean_apply_2(x_27, lean_box(0), x_30);
x_32 = lean_apply_4(x_15, lean_box(0), lean_box(0), x_31, x_28);
return x_32;
}
}
else
{
lean_object* x_33; uint8_t x_34; 
lean_dec(x_4);
x_33 = lean_ctor_get(x_1, 1);
lean_inc(x_33);
lean_dec_ref(x_1);
x_34 = !lean_is_exclusive(x_2);
if (x_34 == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_35 = lean_ctor_get(x_2, 2);
x_36 = lean_ctor_get(x_2, 1);
lean_dec(x_36);
x_37 = lean_ctor_get(x_2, 0);
lean_dec(x_37);
lean_inc_ref(x_5);
x_38 = lean_alloc_closure((void*)(l_Lake_shortOption___lam__0___boxed), 3, 2);
lean_closure_set(x_38, 0, x_5);
lean_closure_set(x_38, 1, x_3);
x_39 = lean_unsigned_to_nat(3u);
x_40 = lean_unsigned_to_nat(0u);
x_41 = lean_string_utf8_byte_size(x_5);
lean_inc(x_41);
lean_inc_ref(x_5);
lean_ctor_set(x_2, 2, x_41);
lean_ctor_set(x_2, 1, x_40);
lean_ctor_set(x_2, 0, x_5);
x_42 = l_String_Slice_Pos_nextn(x_2, x_40, x_39);
lean_dec_ref(x_2);
x_43 = lean_string_utf8_extract(x_5, x_42, x_41);
lean_dec(x_41);
lean_dec(x_42);
lean_dec_ref(x_5);
x_44 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_44, 0, x_43);
x_45 = lean_apply_2(x_35, lean_box(0), x_44);
x_46 = lean_apply_4(x_33, lean_box(0), lean_box(0), x_45, x_38);
return x_46;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_47 = lean_ctor_get(x_2, 2);
lean_inc(x_47);
lean_dec(x_2);
lean_inc_ref(x_5);
x_48 = lean_alloc_closure((void*)(l_Lake_shortOption___lam__0___boxed), 3, 2);
lean_closure_set(x_48, 0, x_5);
lean_closure_set(x_48, 1, x_3);
x_49 = lean_unsigned_to_nat(3u);
x_50 = lean_unsigned_to_nat(0u);
x_51 = lean_string_utf8_byte_size(x_5);
lean_inc(x_51);
lean_inc_ref(x_5);
x_52 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_52, 0, x_5);
lean_ctor_set(x_52, 1, x_50);
lean_ctor_set(x_52, 2, x_51);
x_53 = l_String_Slice_Pos_nextn(x_52, x_50, x_49);
lean_dec_ref(x_52);
x_54 = lean_string_utf8_extract(x_5, x_53, x_51);
lean_dec(x_51);
lean_dec(x_53);
lean_dec_ref(x_5);
x_55 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_55, 0, x_54);
x_56 = lean_apply_2(x_47, lean_box(0), x_55);
x_57 = lean_apply_4(x_33, lean_box(0), lean_box(0), x_56, x_48);
return x_57;
}
}
}
else
{
lean_object* x_58; uint32_t x_59; lean_object* x_60; lean_object* x_61; 
lean_dec(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_58 = lean_unsigned_to_nat(1u);
x_59 = lean_string_utf8_get(x_5, x_58);
lean_dec_ref(x_5);
x_60 = lean_box_uint32(x_59);
x_61 = lean_apply_1(x_3, x_60);
return x_61;
}
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__0(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_box_uint32(x_2);
x_5 = lean_apply_1(x_1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_utf8_extract(x_1, x_5, x_2);
x_7 = lean_apply_1(x_3, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_string_utf8_extract(x_1, x_2, x_3);
x_7 = lean_apply_1(x_4, x_6);
return x_7;
}
}
static lean_object* _init_l_Lake_option___lam__4___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_option___lam__2(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_string_utf8_extract(x_1, x_8, x_2);
x_21 = lean_string_utf8_byte_size(x_9);
lean_inc(x_21);
lean_inc_ref(x_9);
x_22 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_22, 0, x_9);
lean_ctor_set(x_22, 1, x_8);
lean_ctor_set(x_22, 2, x_21);
x_23 = lean_box(0);
x_24 = l_Lake_longOptionOrEq___closed__1;
x_25 = l_Lake_longOptionOrSpace___closed__9;
x_26 = l_Lake_option___lam__4___boxed__const__1;
x_27 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_27, 0, x_22);
lean_closure_set(x_27, 1, x_26);
x_28 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_27, x_25, x_6, x_8, x_23, x_24);
if (lean_obj_tag(x_28) == 0)
{
x_10 = x_21;
goto block_20;
}
else
{
lean_object* x_29; 
lean_dec(x_21);
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_10 = x_29;
goto block_20;
}
block_20:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_string_utf8_byte_size(x_9);
x_12 = lean_nat_dec_eq(x_10, x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_inc(x_10);
lean_inc_ref(x_9);
x_13 = lean_alloc_closure((void*)(l_Lake_option___lam__2___boxed), 5, 4);
lean_closure_set(x_13, 0, x_9);
lean_closure_set(x_13, 1, x_8);
lean_closure_set(x_13, 2, x_10);
lean_closure_set(x_13, 3, x_3);
x_14 = lean_string_utf8_next_fast(x_9, x_10);
lean_dec(x_10);
x_15 = lean_string_utf8_extract(x_9, x_14, x_11);
lean_dec(x_11);
lean_dec(x_14);
lean_dec_ref(x_9);
x_16 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_16, 0, x_15);
x_17 = lean_apply_2(x_4, lean_box(0), x_16);
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_17, x_13);
return x_18;
}
else
{
lean_object* x_19; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_4);
x_19 = lean_apply_1(x_3, x_9);
return x_19;
}
}
}
}
static lean_object* _init_l_Lake_option___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_option___boxed__const__2() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 61;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Lake_option___lam__0(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_option___lam__7(x_1, x_2, x_3, x_4);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_option___lam__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_option___lam__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_option(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint32_t x_8; uint32_t x_9; uint8_t x_10; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = lean_string_utf8_get(x_6, x_7);
x_9 = 45;
x_10 = lean_uint32_dec_eq(x_8, x_9);
if (x_10 == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_5);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_12 = lean_ctor_get(x_5, 1);
x_13 = lean_ctor_get(x_5, 2);
x_14 = lean_ctor_get(x_5, 0);
lean_dec(x_14);
x_15 = lean_string_length(x_6);
x_16 = lean_unsigned_to_nat(2u);
x_17 = lean_nat_dec_eq(x_15, x_16);
lean_dec(x_15);
if (x_17 == 0)
{
uint32_t x_18; uint32_t x_19; uint8_t x_20; 
x_18 = lean_string_utf8_get(x_6, x_16);
x_19 = 61;
x_20 = lean_uint32_dec_eq(x_18, x_19);
if (x_20 == 0)
{
uint32_t x_21; uint8_t x_22; 
x_21 = 32;
x_22 = lean_uint32_dec_eq(x_18, x_21);
if (x_22 == 0)
{
lean_object* x_23; 
lean_free_object(x_5);
lean_dec(x_12);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_23 = lean_apply_1(x_13, x_6);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
lean_dec(x_13);
x_24 = lean_ctor_get(x_2, 1);
lean_inc(x_24);
lean_dec_ref(x_2);
x_25 = lean_unsigned_to_nat(0u);
x_26 = lean_string_utf8_byte_size(x_6);
lean_inc(x_26);
lean_inc_ref(x_6);
lean_ctor_set(x_5, 2, x_26);
lean_ctor_set(x_5, 1, x_25);
lean_ctor_set(x_5, 0, x_6);
x_27 = l_String_Slice_Pos_nextn(x_5, x_25, x_16);
lean_dec_ref(x_5);
x_28 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_28, 0, x_6);
lean_ctor_set(x_28, 1, x_27);
lean_ctor_set(x_28, 2, x_26);
x_29 = l_Lake_shortOptionWithSpace___closed__0;
x_30 = l_Lake_shortOptionWithSpace___closed__1;
x_31 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_28, x_29, x_30, x_25);
lean_dec_ref(x_28);
x_32 = lean_ctor_get(x_31, 0);
lean_inc_ref(x_32);
x_33 = lean_ctor_get(x_31, 1);
lean_inc(x_33);
x_34 = lean_ctor_get(x_31, 2);
lean_inc(x_34);
lean_dec_ref(x_31);
x_35 = lean_ctor_get(x_3, 2);
lean_inc(x_35);
lean_dec_ref(x_3);
x_36 = lean_box_uint32(x_8);
x_37 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_37, 0, x_12);
lean_closure_set(x_37, 1, x_36);
x_38 = lean_string_utf8_extract(x_32, x_33, x_34);
lean_dec(x_34);
lean_dec(x_33);
lean_dec_ref(x_32);
x_39 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_39, 0, x_38);
x_40 = lean_apply_2(x_35, lean_box(0), x_39);
x_41 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_40, x_37);
return x_41;
}
}
else
{
lean_object* x_42; uint8_t x_43; 
lean_free_object(x_5);
lean_dec(x_13);
x_42 = lean_ctor_get(x_2, 1);
lean_inc(x_42);
lean_dec_ref(x_2);
x_43 = !lean_is_exclusive(x_3);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_44 = lean_ctor_get(x_3, 2);
x_45 = lean_ctor_get(x_3, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_3, 0);
lean_dec(x_46);
x_47 = lean_box_uint32(x_8);
x_48 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_48, 0, x_12);
lean_closure_set(x_48, 1, x_47);
x_49 = lean_unsigned_to_nat(3u);
x_50 = lean_unsigned_to_nat(0u);
x_51 = lean_string_utf8_byte_size(x_6);
lean_inc(x_51);
lean_inc_ref(x_6);
lean_ctor_set(x_3, 2, x_51);
lean_ctor_set(x_3, 1, x_50);
lean_ctor_set(x_3, 0, x_6);
x_52 = l_String_Slice_Pos_nextn(x_3, x_50, x_49);
lean_dec_ref(x_3);
x_53 = lean_string_utf8_extract(x_6, x_52, x_51);
lean_dec(x_51);
lean_dec(x_52);
lean_dec_ref(x_6);
x_54 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_54, 0, x_53);
x_55 = lean_apply_2(x_44, lean_box(0), x_54);
x_56 = lean_apply_4(x_42, lean_box(0), lean_box(0), x_55, x_48);
return x_56;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_57 = lean_ctor_get(x_3, 2);
lean_inc(x_57);
lean_dec(x_3);
x_58 = lean_box_uint32(x_8);
x_59 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_59, 0, x_12);
lean_closure_set(x_59, 1, x_58);
x_60 = lean_unsigned_to_nat(3u);
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_string_utf8_byte_size(x_6);
lean_inc(x_62);
lean_inc_ref(x_6);
x_63 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_63, 0, x_6);
lean_ctor_set(x_63, 1, x_61);
lean_ctor_set(x_63, 2, x_62);
x_64 = l_String_Slice_Pos_nextn(x_63, x_61, x_60);
lean_dec_ref(x_63);
x_65 = lean_string_utf8_extract(x_6, x_64, x_62);
lean_dec(x_62);
lean_dec(x_64);
lean_dec_ref(x_6);
x_66 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_66, 0, x_65);
x_67 = lean_apply_2(x_57, lean_box(0), x_66);
x_68 = lean_apply_4(x_42, lean_box(0), lean_box(0), x_67, x_59);
return x_68;
}
}
}
else
{
lean_object* x_69; lean_object* x_70; 
lean_free_object(x_5);
lean_dec(x_13);
lean_dec_ref(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_69 = lean_box_uint32(x_8);
x_70 = lean_apply_1(x_12, x_69);
return x_70;
}
}
else
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; 
x_71 = lean_ctor_get(x_5, 1);
x_72 = lean_ctor_get(x_5, 2);
lean_inc(x_72);
lean_inc(x_71);
lean_dec(x_5);
x_73 = lean_string_length(x_6);
x_74 = lean_unsigned_to_nat(2u);
x_75 = lean_nat_dec_eq(x_73, x_74);
lean_dec(x_73);
if (x_75 == 0)
{
uint32_t x_76; uint32_t x_77; uint8_t x_78; 
x_76 = lean_string_utf8_get(x_6, x_74);
x_77 = 61;
x_78 = lean_uint32_dec_eq(x_76, x_77);
if (x_78 == 0)
{
uint32_t x_79; uint8_t x_80; 
x_79 = 32;
x_80 = lean_uint32_dec_eq(x_76, x_79);
if (x_80 == 0)
{
lean_object* x_81; 
lean_dec(x_71);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_81 = lean_apply_1(x_72, x_6);
return x_81;
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; 
lean_dec(x_72);
x_82 = lean_ctor_get(x_2, 1);
lean_inc(x_82);
lean_dec_ref(x_2);
x_83 = lean_unsigned_to_nat(0u);
x_84 = lean_string_utf8_byte_size(x_6);
lean_inc(x_84);
lean_inc_ref(x_6);
x_85 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_85, 0, x_6);
lean_ctor_set(x_85, 1, x_83);
lean_ctor_set(x_85, 2, x_84);
x_86 = l_String_Slice_Pos_nextn(x_85, x_83, x_74);
lean_dec_ref(x_85);
x_87 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_87, 0, x_6);
lean_ctor_set(x_87, 1, x_86);
lean_ctor_set(x_87, 2, x_84);
x_88 = l_Lake_shortOptionWithSpace___closed__0;
x_89 = l_Lake_shortOptionWithSpace___closed__1;
x_90 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_87, x_88, x_89, x_83);
lean_dec_ref(x_87);
x_91 = lean_ctor_get(x_90, 0);
lean_inc_ref(x_91);
x_92 = lean_ctor_get(x_90, 1);
lean_inc(x_92);
x_93 = lean_ctor_get(x_90, 2);
lean_inc(x_93);
lean_dec_ref(x_90);
x_94 = lean_ctor_get(x_3, 2);
lean_inc(x_94);
lean_dec_ref(x_3);
x_95 = lean_box_uint32(x_8);
x_96 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_96, 0, x_71);
lean_closure_set(x_96, 1, x_95);
x_97 = lean_string_utf8_extract(x_91, x_92, x_93);
lean_dec(x_93);
lean_dec(x_92);
lean_dec_ref(x_91);
x_98 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_98, 0, x_97);
x_99 = lean_apply_2(x_94, lean_box(0), x_98);
x_100 = lean_apply_4(x_82, lean_box(0), lean_box(0), x_99, x_96);
return x_100;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; 
lean_dec(x_72);
x_101 = lean_ctor_get(x_2, 1);
lean_inc(x_101);
lean_dec_ref(x_2);
x_102 = lean_ctor_get(x_3, 2);
lean_inc(x_102);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_103 = x_3;
} else {
 lean_dec_ref(x_3);
 x_103 = lean_box(0);
}
x_104 = lean_box_uint32(x_8);
x_105 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_105, 0, x_71);
lean_closure_set(x_105, 1, x_104);
x_106 = lean_unsigned_to_nat(3u);
x_107 = lean_unsigned_to_nat(0u);
x_108 = lean_string_utf8_byte_size(x_6);
lean_inc(x_108);
lean_inc_ref(x_6);
if (lean_is_scalar(x_103)) {
 x_109 = lean_alloc_ctor(0, 3, 0);
} else {
 x_109 = x_103;
}
lean_ctor_set(x_109, 0, x_6);
lean_ctor_set(x_109, 1, x_107);
lean_ctor_set(x_109, 2, x_108);
x_110 = l_String_Slice_Pos_nextn(x_109, x_107, x_106);
lean_dec_ref(x_109);
x_111 = lean_string_utf8_extract(x_6, x_110, x_108);
lean_dec(x_108);
lean_dec(x_110);
lean_dec_ref(x_6);
x_112 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_112, 0, x_111);
x_113 = lean_apply_2(x_102, lean_box(0), x_112);
x_114 = lean_apply_4(x_101, lean_box(0), lean_box(0), x_113, x_105);
return x_114;
}
}
else
{
lean_object* x_115; lean_object* x_116; 
lean_dec(x_72);
lean_dec_ref(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_115 = lean_box_uint32(x_8);
x_116 = lean_apply_1(x_71, x_115);
return x_116;
}
}
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_132; lean_object* x_133; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 
x_117 = lean_ctor_get(x_5, 0);
lean_inc(x_117);
if (lean_is_exclusive(x_5)) {
 lean_ctor_release(x_5, 0);
 lean_ctor_release(x_5, 1);
 lean_ctor_release(x_5, 2);
 x_118 = x_5;
} else {
 lean_dec_ref(x_5);
 x_118 = lean_box(0);
}
x_132 = l_Lake_longOptionOrEq___closed__0;
x_154 = lean_unsigned_to_nat(0u);
x_155 = lean_string_utf8_byte_size(x_6);
lean_inc(x_155);
lean_inc_ref(x_6);
x_156 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_156, 0, x_6);
lean_ctor_set(x_156, 1, x_154);
lean_ctor_set(x_156, 2, x_155);
x_157 = lean_box(0);
x_158 = l_Lake_longOptionOrEq___closed__1;
x_159 = l_Lake_longOptionOrSpace___closed__9;
x_160 = l_Lake_option___boxed__const__2;
x_161 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_161, 0, x_156);
lean_closure_set(x_161, 1, x_160);
x_162 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_161, x_159, x_132, x_154, x_157, x_158);
if (lean_obj_tag(x_162) == 0)
{
x_133 = x_155;
goto block_153;
}
else
{
lean_object* x_163; 
lean_dec(x_155);
x_163 = lean_ctor_get(x_162, 0);
lean_inc(x_163);
lean_dec_ref(x_162);
x_133 = x_163;
goto block_153;
}
block_131:
{
lean_object* x_120; uint8_t x_121; 
x_120 = lean_string_utf8_byte_size(x_6);
x_121 = lean_nat_dec_eq(x_119, x_120);
if (x_121 == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; 
x_122 = lean_ctor_get(x_2, 1);
lean_inc(x_122);
lean_dec_ref(x_2);
x_123 = lean_ctor_get(x_3, 2);
lean_inc(x_123);
lean_dec_ref(x_3);
lean_inc(x_119);
lean_inc_ref(x_6);
x_124 = lean_alloc_closure((void*)(l_Lake_option___lam__7___boxed), 4, 3);
lean_closure_set(x_124, 0, x_6);
lean_closure_set(x_124, 1, x_119);
lean_closure_set(x_124, 2, x_117);
x_125 = lean_string_utf8_next_fast(x_6, x_119);
lean_dec(x_119);
x_126 = lean_string_utf8_extract(x_6, x_125, x_120);
lean_dec(x_120);
lean_dec(x_125);
lean_dec_ref(x_6);
x_127 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_127, 0, x_126);
x_128 = lean_apply_2(x_123, lean_box(0), x_127);
x_129 = lean_apply_4(x_122, lean_box(0), lean_box(0), x_128, x_124);
return x_129;
}
else
{
lean_object* x_130; 
lean_dec(x_120);
lean_dec(x_119);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_130 = lean_apply_1(x_117, x_6);
return x_130;
}
}
block_153:
{
lean_object* x_134; uint8_t x_135; 
x_134 = lean_string_utf8_byte_size(x_6);
x_135 = lean_nat_dec_eq(x_133, x_134);
if (x_135 == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; 
lean_dec(x_118);
x_136 = lean_ctor_get(x_2, 1);
lean_inc(x_136);
lean_dec_ref(x_2);
x_137 = lean_ctor_get(x_3, 2);
lean_inc(x_137);
lean_dec_ref(x_3);
lean_inc(x_136);
lean_inc(x_137);
lean_inc(x_133);
lean_inc_ref(x_6);
x_138 = lean_alloc_closure((void*)(l_Lake_option___lam__4___boxed), 7, 6);
lean_closure_set(x_138, 0, x_6);
lean_closure_set(x_138, 1, x_133);
lean_closure_set(x_138, 2, x_117);
lean_closure_set(x_138, 3, x_137);
lean_closure_set(x_138, 4, x_136);
lean_closure_set(x_138, 5, x_132);
x_139 = lean_string_utf8_next_fast(x_6, x_133);
lean_dec(x_133);
x_140 = lean_string_utf8_extract(x_6, x_139, x_134);
lean_dec(x_134);
lean_dec(x_139);
lean_dec_ref(x_6);
x_141 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_141, 0, x_140);
x_142 = lean_apply_2(x_137, lean_box(0), x_141);
x_143 = lean_apply_4(x_136, lean_box(0), lean_box(0), x_142, x_138);
return x_143;
}
else
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; 
lean_dec(x_133);
x_144 = lean_unsigned_to_nat(0u);
lean_inc(x_134);
lean_inc_ref(x_6);
if (lean_is_scalar(x_118)) {
 x_145 = lean_alloc_ctor(0, 3, 0);
} else {
 x_145 = x_118;
}
lean_ctor_set(x_145, 0, x_6);
lean_ctor_set(x_145, 1, x_144);
lean_ctor_set(x_145, 2, x_134);
x_146 = lean_box(0);
x_147 = l_Lake_longOptionOrEq___closed__1;
x_148 = l_Lake_longOptionOrSpace___closed__9;
x_149 = l_Lake_option___boxed__const__1;
x_150 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_150, 0, x_145);
lean_closure_set(x_150, 1, x_149);
x_151 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_150, x_148, x_132, x_144, x_146, x_147);
if (lean_obj_tag(x_151) == 0)
{
x_119 = x_134;
goto block_131;
}
else
{
lean_object* x_152; 
lean_dec(x_134);
x_152 = lean_ctor_get(x_151, 0);
lean_inc(x_152);
lean_dec_ref(x_151);
x_119 = x_152;
goto block_131;
}
}
}
}
}
}
static lean_object* _init_l_Lake_option___redArg___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_option___redArg___boxed__const__2() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 61;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_option___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint32_t x_6; uint32_t x_7; uint8_t x_8; 
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_string_utf8_get(x_4, x_5);
x_7 = 45;
x_8 = lean_uint32_dec_eq(x_6, x_7);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_3);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_3, 1);
x_11 = lean_ctor_get(x_3, 2);
x_12 = lean_ctor_get(x_3, 0);
lean_dec(x_12);
x_13 = lean_string_length(x_4);
x_14 = lean_unsigned_to_nat(2u);
x_15 = lean_nat_dec_eq(x_13, x_14);
lean_dec(x_13);
if (x_15 == 0)
{
uint32_t x_16; uint32_t x_17; uint8_t x_18; 
x_16 = lean_string_utf8_get(x_4, x_14);
x_17 = 61;
x_18 = lean_uint32_dec_eq(x_16, x_17);
if (x_18 == 0)
{
uint32_t x_19; uint8_t x_20; 
x_19 = 32;
x_20 = lean_uint32_dec_eq(x_16, x_19);
if (x_20 == 0)
{
lean_object* x_21; 
lean_free_object(x_3);
lean_dec(x_10);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_21 = lean_apply_1(x_11, x_4);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
lean_dec(x_11);
x_22 = lean_ctor_get(x_1, 1);
lean_inc(x_22);
lean_dec_ref(x_1);
x_23 = lean_unsigned_to_nat(0u);
x_24 = lean_string_utf8_byte_size(x_4);
lean_inc(x_24);
lean_inc_ref(x_4);
lean_ctor_set(x_3, 2, x_24);
lean_ctor_set(x_3, 1, x_23);
lean_ctor_set(x_3, 0, x_4);
x_25 = l_String_Slice_Pos_nextn(x_3, x_23, x_14);
lean_dec_ref(x_3);
x_26 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_26, 0, x_4);
lean_ctor_set(x_26, 1, x_25);
lean_ctor_set(x_26, 2, x_24);
x_27 = l_Lake_shortOptionWithSpace___closed__0;
x_28 = l_Lake_shortOptionWithSpace___closed__1;
x_29 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_26, x_27, x_28, x_23);
lean_dec_ref(x_26);
x_30 = lean_ctor_get(x_29, 0);
lean_inc_ref(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
x_32 = lean_ctor_get(x_29, 2);
lean_inc(x_32);
lean_dec_ref(x_29);
x_33 = lean_ctor_get(x_2, 2);
lean_inc(x_33);
lean_dec_ref(x_2);
x_34 = lean_box_uint32(x_6);
x_35 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_35, 0, x_10);
lean_closure_set(x_35, 1, x_34);
x_36 = lean_string_utf8_extract(x_30, x_31, x_32);
lean_dec(x_32);
lean_dec(x_31);
lean_dec_ref(x_30);
x_37 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_37, 0, x_36);
x_38 = lean_apply_2(x_33, lean_box(0), x_37);
x_39 = lean_apply_4(x_22, lean_box(0), lean_box(0), x_38, x_35);
return x_39;
}
}
else
{
lean_object* x_40; uint8_t x_41; 
lean_free_object(x_3);
lean_dec(x_11);
x_40 = lean_ctor_get(x_1, 1);
lean_inc(x_40);
lean_dec_ref(x_1);
x_41 = !lean_is_exclusive(x_2);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_42 = lean_ctor_get(x_2, 2);
x_43 = lean_ctor_get(x_2, 1);
lean_dec(x_43);
x_44 = lean_ctor_get(x_2, 0);
lean_dec(x_44);
x_45 = lean_box_uint32(x_6);
x_46 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_46, 0, x_10);
lean_closure_set(x_46, 1, x_45);
x_47 = lean_unsigned_to_nat(3u);
x_48 = lean_unsigned_to_nat(0u);
x_49 = lean_string_utf8_byte_size(x_4);
lean_inc(x_49);
lean_inc_ref(x_4);
lean_ctor_set(x_2, 2, x_49);
lean_ctor_set(x_2, 1, x_48);
lean_ctor_set(x_2, 0, x_4);
x_50 = l_String_Slice_Pos_nextn(x_2, x_48, x_47);
lean_dec_ref(x_2);
x_51 = lean_string_utf8_extract(x_4, x_50, x_49);
lean_dec(x_49);
lean_dec(x_50);
lean_dec_ref(x_4);
x_52 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_52, 0, x_51);
x_53 = lean_apply_2(x_42, lean_box(0), x_52);
x_54 = lean_apply_4(x_40, lean_box(0), lean_box(0), x_53, x_46);
return x_54;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_55 = lean_ctor_get(x_2, 2);
lean_inc(x_55);
lean_dec(x_2);
x_56 = lean_box_uint32(x_6);
x_57 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_57, 0, x_10);
lean_closure_set(x_57, 1, x_56);
x_58 = lean_unsigned_to_nat(3u);
x_59 = lean_unsigned_to_nat(0u);
x_60 = lean_string_utf8_byte_size(x_4);
lean_inc(x_60);
lean_inc_ref(x_4);
x_61 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_61, 0, x_4);
lean_ctor_set(x_61, 1, x_59);
lean_ctor_set(x_61, 2, x_60);
x_62 = l_String_Slice_Pos_nextn(x_61, x_59, x_58);
lean_dec_ref(x_61);
x_63 = lean_string_utf8_extract(x_4, x_62, x_60);
lean_dec(x_60);
lean_dec(x_62);
lean_dec_ref(x_4);
x_64 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_64, 0, x_63);
x_65 = lean_apply_2(x_55, lean_box(0), x_64);
x_66 = lean_apply_4(x_40, lean_box(0), lean_box(0), x_65, x_57);
return x_66;
}
}
}
else
{
lean_object* x_67; lean_object* x_68; 
lean_free_object(x_3);
lean_dec(x_11);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_67 = lean_box_uint32(x_6);
x_68 = lean_apply_1(x_10, x_67);
return x_68;
}
}
else
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; 
x_69 = lean_ctor_get(x_3, 1);
x_70 = lean_ctor_get(x_3, 2);
lean_inc(x_70);
lean_inc(x_69);
lean_dec(x_3);
x_71 = lean_string_length(x_4);
x_72 = lean_unsigned_to_nat(2u);
x_73 = lean_nat_dec_eq(x_71, x_72);
lean_dec(x_71);
if (x_73 == 0)
{
uint32_t x_74; uint32_t x_75; uint8_t x_76; 
x_74 = lean_string_utf8_get(x_4, x_72);
x_75 = 61;
x_76 = lean_uint32_dec_eq(x_74, x_75);
if (x_76 == 0)
{
uint32_t x_77; uint8_t x_78; 
x_77 = 32;
x_78 = lean_uint32_dec_eq(x_74, x_77);
if (x_78 == 0)
{
lean_object* x_79; 
lean_dec(x_69);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_79 = lean_apply_1(x_70, x_4);
return x_79;
}
else
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
lean_dec(x_70);
x_80 = lean_ctor_get(x_1, 1);
lean_inc(x_80);
lean_dec_ref(x_1);
x_81 = lean_unsigned_to_nat(0u);
x_82 = lean_string_utf8_byte_size(x_4);
lean_inc(x_82);
lean_inc_ref(x_4);
x_83 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_83, 0, x_4);
lean_ctor_set(x_83, 1, x_81);
lean_ctor_set(x_83, 2, x_82);
x_84 = l_String_Slice_Pos_nextn(x_83, x_81, x_72);
lean_dec_ref(x_83);
x_85 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_85, 0, x_4);
lean_ctor_set(x_85, 1, x_84);
lean_ctor_set(x_85, 2, x_82);
x_86 = l_Lake_shortOptionWithSpace___closed__0;
x_87 = l_Lake_shortOptionWithSpace___closed__1;
x_88 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_85, x_86, x_87, x_81);
lean_dec_ref(x_85);
x_89 = lean_ctor_get(x_88, 0);
lean_inc_ref(x_89);
x_90 = lean_ctor_get(x_88, 1);
lean_inc(x_90);
x_91 = lean_ctor_get(x_88, 2);
lean_inc(x_91);
lean_dec_ref(x_88);
x_92 = lean_ctor_get(x_2, 2);
lean_inc(x_92);
lean_dec_ref(x_2);
x_93 = lean_box_uint32(x_6);
x_94 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_94, 0, x_69);
lean_closure_set(x_94, 1, x_93);
x_95 = lean_string_utf8_extract(x_89, x_90, x_91);
lean_dec(x_91);
lean_dec(x_90);
lean_dec_ref(x_89);
x_96 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_96, 0, x_95);
x_97 = lean_apply_2(x_92, lean_box(0), x_96);
x_98 = lean_apply_4(x_80, lean_box(0), lean_box(0), x_97, x_94);
return x_98;
}
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
lean_dec(x_70);
x_99 = lean_ctor_get(x_1, 1);
lean_inc(x_99);
lean_dec_ref(x_1);
x_100 = lean_ctor_get(x_2, 2);
lean_inc(x_100);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 lean_ctor_release(x_2, 1);
 lean_ctor_release(x_2, 2);
 x_101 = x_2;
} else {
 lean_dec_ref(x_2);
 x_101 = lean_box(0);
}
x_102 = lean_box_uint32(x_6);
x_103 = lean_alloc_closure((void*)(l_Lake_option___lam__0___boxed), 3, 2);
lean_closure_set(x_103, 0, x_69);
lean_closure_set(x_103, 1, x_102);
x_104 = lean_unsigned_to_nat(3u);
x_105 = lean_unsigned_to_nat(0u);
x_106 = lean_string_utf8_byte_size(x_4);
lean_inc(x_106);
lean_inc_ref(x_4);
if (lean_is_scalar(x_101)) {
 x_107 = lean_alloc_ctor(0, 3, 0);
} else {
 x_107 = x_101;
}
lean_ctor_set(x_107, 0, x_4);
lean_ctor_set(x_107, 1, x_105);
lean_ctor_set(x_107, 2, x_106);
x_108 = l_String_Slice_Pos_nextn(x_107, x_105, x_104);
lean_dec_ref(x_107);
x_109 = lean_string_utf8_extract(x_4, x_108, x_106);
lean_dec(x_106);
lean_dec(x_108);
lean_dec_ref(x_4);
x_110 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_110, 0, x_109);
x_111 = lean_apply_2(x_100, lean_box(0), x_110);
x_112 = lean_apply_4(x_99, lean_box(0), lean_box(0), x_111, x_103);
return x_112;
}
}
else
{
lean_object* x_113; lean_object* x_114; 
lean_dec(x_70);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_113 = lean_box_uint32(x_6);
x_114 = lean_apply_1(x_69, x_113);
return x_114;
}
}
}
else
{
lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_130; lean_object* x_131; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_115 = lean_ctor_get(x_3, 0);
lean_inc(x_115);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_116 = x_3;
} else {
 lean_dec_ref(x_3);
 x_116 = lean_box(0);
}
x_130 = l_Lake_longOptionOrEq___closed__0;
x_152 = lean_unsigned_to_nat(0u);
x_153 = lean_string_utf8_byte_size(x_4);
lean_inc(x_153);
lean_inc_ref(x_4);
x_154 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_154, 0, x_4);
lean_ctor_set(x_154, 1, x_152);
lean_ctor_set(x_154, 2, x_153);
x_155 = lean_box(0);
x_156 = l_Lake_longOptionOrEq___closed__1;
x_157 = l_Lake_longOptionOrSpace___closed__9;
x_158 = l_Lake_option___redArg___boxed__const__2;
x_159 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_159, 0, x_154);
lean_closure_set(x_159, 1, x_158);
x_160 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_159, x_157, x_130, x_152, x_155, x_156);
if (lean_obj_tag(x_160) == 0)
{
x_131 = x_153;
goto block_151;
}
else
{
lean_object* x_161; 
lean_dec(x_153);
x_161 = lean_ctor_get(x_160, 0);
lean_inc(x_161);
lean_dec_ref(x_160);
x_131 = x_161;
goto block_151;
}
block_129:
{
lean_object* x_118; uint8_t x_119; 
x_118 = lean_string_utf8_byte_size(x_4);
x_119 = lean_nat_dec_eq(x_117, x_118);
if (x_119 == 0)
{
lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; 
x_120 = lean_ctor_get(x_1, 1);
lean_inc(x_120);
lean_dec_ref(x_1);
x_121 = lean_ctor_get(x_2, 2);
lean_inc(x_121);
lean_dec_ref(x_2);
lean_inc(x_117);
lean_inc_ref(x_4);
x_122 = lean_alloc_closure((void*)(l_Lake_option___lam__7___boxed), 4, 3);
lean_closure_set(x_122, 0, x_4);
lean_closure_set(x_122, 1, x_117);
lean_closure_set(x_122, 2, x_115);
x_123 = lean_string_utf8_next_fast(x_4, x_117);
lean_dec(x_117);
x_124 = lean_string_utf8_extract(x_4, x_123, x_118);
lean_dec(x_118);
lean_dec(x_123);
lean_dec_ref(x_4);
x_125 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_125, 0, x_124);
x_126 = lean_apply_2(x_121, lean_box(0), x_125);
x_127 = lean_apply_4(x_120, lean_box(0), lean_box(0), x_126, x_122);
return x_127;
}
else
{
lean_object* x_128; 
lean_dec(x_118);
lean_dec(x_117);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_128 = lean_apply_1(x_115, x_4);
return x_128;
}
}
block_151:
{
lean_object* x_132; uint8_t x_133; 
x_132 = lean_string_utf8_byte_size(x_4);
x_133 = lean_nat_dec_eq(x_131, x_132);
if (x_133 == 0)
{
lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; 
lean_dec(x_116);
x_134 = lean_ctor_get(x_1, 1);
lean_inc(x_134);
lean_dec_ref(x_1);
x_135 = lean_ctor_get(x_2, 2);
lean_inc(x_135);
lean_dec_ref(x_2);
lean_inc(x_134);
lean_inc(x_135);
lean_inc(x_131);
lean_inc_ref(x_4);
x_136 = lean_alloc_closure((void*)(l_Lake_option___lam__4___boxed), 7, 6);
lean_closure_set(x_136, 0, x_4);
lean_closure_set(x_136, 1, x_131);
lean_closure_set(x_136, 2, x_115);
lean_closure_set(x_136, 3, x_135);
lean_closure_set(x_136, 4, x_134);
lean_closure_set(x_136, 5, x_130);
x_137 = lean_string_utf8_next_fast(x_4, x_131);
lean_dec(x_131);
x_138 = lean_string_utf8_extract(x_4, x_137, x_132);
lean_dec(x_132);
lean_dec(x_137);
lean_dec_ref(x_4);
x_139 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___lam__1), 2, 1);
lean_closure_set(x_139, 0, x_138);
x_140 = lean_apply_2(x_135, lean_box(0), x_139);
x_141 = lean_apply_4(x_134, lean_box(0), lean_box(0), x_140, x_136);
return x_141;
}
else
{
lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
lean_dec(x_131);
x_142 = lean_unsigned_to_nat(0u);
lean_inc(x_132);
lean_inc_ref(x_4);
if (lean_is_scalar(x_116)) {
 x_143 = lean_alloc_ctor(0, 3, 0);
} else {
 x_143 = x_116;
}
lean_ctor_set(x_143, 0, x_4);
lean_ctor_set(x_143, 1, x_142);
lean_ctor_set(x_143, 2, x_132);
x_144 = lean_box(0);
x_145 = l_Lake_longOptionOrEq___closed__1;
x_146 = l_Lake_longOptionOrSpace___closed__9;
x_147 = l_Lake_option___redArg___boxed__const__1;
x_148 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharSearcher_instIteratorIdSearchStep___lam__0___boxed), 3, 2);
lean_closure_set(x_148, 0, x_143);
lean_closure_set(x_148, 1, x_147);
x_149 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___redArg(x_148, x_146, x_130, x_142, x_144, x_145);
if (lean_obj_tag(x_149) == 0)
{
x_117 = x_132;
goto block_129;
}
else
{
lean_object* x_150; 
lean_dec(x_132);
x_150 = lean_ctor_get(x_149, 0);
lean_inc(x_150);
lean_dec_ref(x_149);
x_117 = x_150;
goto block_129;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_apply_1(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_6 = lean_box(0);
x_7 = lean_apply_2(x_1, lean_box(0), x_6);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_8 = lean_ctor_get(x_5, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 1);
lean_inc(x_9);
lean_dec_ref(x_5);
lean_inc(x_8);
x_10 = lean_alloc_closure((void*)(l_Lake_processLeadingOption___redArg___lam__0), 3, 2);
lean_closure_set(x_10, 0, x_2);
lean_closure_set(x_10, 1, x_8);
x_17 = lean_unsigned_to_nat(1u);
x_18 = lean_string_length(x_8);
x_19 = lean_nat_dec_lt(x_17, x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_dec(x_8);
x_11 = x_19;
goto block_16;
}
else
{
lean_object* x_20; uint32_t x_21; uint32_t x_22; uint8_t x_23; 
x_20 = lean_unsigned_to_nat(0u);
x_21 = lean_string_utf8_get(x_8, x_20);
lean_dec(x_8);
x_22 = 45;
x_23 = lean_uint32_dec_eq(x_21, x_22);
x_11 = x_23;
goto block_16;
}
block_16:
{
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_4);
lean_dec(x_3);
x_12 = lean_box(0);
x_13 = lean_apply_2(x_1, lean_box(0), x_12);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_1);
x_14 = lean_apply_1(x_3, x_9);
x_15 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_14, x_10);
return x_15;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = lean_ctor_get(x_4, 1);
lean_inc(x_8);
lean_dec_ref(x_4);
lean_inc(x_5);
x_9 = lean_alloc_closure((void*)(l_Lake_processLeadingOption___redArg___lam__1), 5, 4);
lean_closure_set(x_9, 0, x_8);
lean_closure_set(x_9, 1, x_3);
lean_closure_set(x_9, 2, x_7);
lean_closure_set(x_9, 3, x_5);
x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_processLeadingOption___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_processLeadingOptions___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_apply_1(x_1, x_2);
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 1)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_22; uint8_t x_23; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec_ref(x_7);
lean_inc(x_2);
lean_inc(x_8);
x_10 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___redArg___lam__2), 5, 4);
lean_closure_set(x_10, 0, x_1);
lean_closure_set(x_10, 1, x_8);
lean_closure_set(x_10, 2, x_2);
lean_closure_set(x_10, 3, x_3);
x_11 = lean_string_length(x_8);
x_22 = lean_unsigned_to_nat(1u);
x_23 = lean_nat_dec_lt(x_22, x_11);
if (x_23 == 0)
{
lean_dec(x_8);
x_12 = x_23;
goto block_21;
}
else
{
lean_object* x_24; uint32_t x_25; uint32_t x_26; uint8_t x_27; 
x_24 = lean_unsigned_to_nat(0u);
x_25 = lean_string_utf8_get(x_8, x_24);
lean_dec(x_8);
x_26 = 45;
x_27 = lean_uint32_dec_eq(x_25, x_26);
x_12 = x_27;
goto block_21;
}
block_21:
{
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; 
lean_dec_ref(x_10);
x_13 = lean_unsigned_to_nat(0u);
x_14 = lean_nat_dec_eq(x_11, x_13);
lean_dec(x_11);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
x_15 = lean_box(0);
x_16 = lean_apply_2(x_4, lean_box(0), x_15);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; 
lean_dec(x_4);
x_17 = lean_apply_1(x_5, x_9);
x_18 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_17, x_6);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_11);
lean_dec(x_6);
lean_dec(x_4);
x_19 = lean_apply_1(x_5, x_9);
x_20 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_19, x_10);
return x_20;
}
}
}
else
{
lean_object* x_28; lean_object* x_29; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_28 = lean_box(0);
x_29 = lean_apply_2(x_4, lean_box(0), x_28);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 1);
lean_inc(x_8);
lean_inc(x_3);
x_9 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___redArg___lam__0), 4, 3);
lean_closure_set(x_9, 0, x_1);
lean_closure_set(x_9, 1, x_2);
lean_closure_set(x_9, 2, x_3);
lean_inc_ref(x_9);
lean_inc(x_5);
x_10 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___redArg___lam__1), 7, 6);
lean_closure_set(x_10, 0, x_3);
lean_closure_set(x_10, 1, x_5);
lean_closure_set(x_10, 2, x_9);
lean_closure_set(x_10, 3, x_8);
lean_closure_set(x_10, 4, x_7);
lean_closure_set(x_10, 5, x_9);
x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_processLeadingOptions___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg___lam__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_1);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set_tag(x_1, 0);
lean_ctor_set(x_1, 0, x_6);
return x_1;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_1, 0);
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_1);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_7);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_8);
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_collectArgs___redArg(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
if (lean_obj_tag(x_8) == 1)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_20; uint8_t x_21; 
lean_dec(x_7);
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec_ref(x_8);
x_10 = lean_string_length(x_9);
x_20 = lean_unsigned_to_nat(1u);
x_21 = lean_nat_dec_lt(x_20, x_10);
if (x_21 == 0)
{
x_11 = x_21;
goto block_19;
}
else
{
lean_object* x_22; uint32_t x_23; uint32_t x_24; uint8_t x_25; 
x_22 = lean_unsigned_to_nat(0u);
x_23 = lean_string_utf8_get(x_9, x_22);
x_24 = 45;
x_25 = lean_uint32_dec_eq(x_23, x_24);
x_11 = x_25;
goto block_19;
}
block_19:
{
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13; 
lean_dec(x_6);
lean_dec(x_5);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_nat_dec_eq(x_10, x_12);
lean_dec(x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_array_push(x_1, x_9);
x_15 = l_Lake_collectArgs___redArg(x_2, x_3, x_4, x_14);
return x_15;
}
else
{
lean_object* x_16; 
lean_dec(x_9);
x_16 = l_Lake_collectArgs___redArg(x_2, x_3, x_4, x_1);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; 
lean_dec(x_10);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_17 = lean_apply_1(x_4, x_9);
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_17, x_6);
return x_18;
}
}
}
else
{
lean_object* x_26; 
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_26 = lean_apply_2(x_7, lean_box(0), x_1);
return x_26;
}
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 2);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
x_9 = lean_alloc_closure((void*)(l_Lake_collectArgs___redArg___lam__0), 1, 0);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc_ref(x_2);
lean_inc_ref(x_1);
x_10 = lean_alloc_closure((void*)(l_Lake_collectArgs___redArg___lam__1), 5, 4);
lean_closure_set(x_10, 0, x_1);
lean_closure_set(x_10, 1, x_2);
lean_closure_set(x_10, 2, x_3);
lean_closure_set(x_10, 3, x_4);
lean_inc(x_7);
x_11 = lean_apply_2(x_7, lean_box(0), x_9);
lean_inc(x_6);
x_12 = lean_alloc_closure((void*)(l_Lake_collectArgs___redArg___lam__2), 8, 7);
lean_closure_set(x_12, 0, x_4);
lean_closure_set(x_12, 1, x_1);
lean_closure_set(x_12, 2, x_2);
lean_closure_set(x_12, 3, x_3);
lean_closure_set(x_12, 4, x_6);
lean_closure_set(x_12, 5, x_10);
lean_closure_set(x_12, 6, x_8);
x_13 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_11, x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_collectArgs___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_processOptions___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_array_to_list(x_2);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_processOptions___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_processOptions(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_inc_ref(x_3);
x_6 = lean_alloc_closure((void*)(l_Lake_processOptions___lam__0), 2, 1);
lean_closure_set(x_6, 0, x_3);
x_7 = l_Lake_processOptions___closed__0;
x_8 = l_Lake_collectArgs___redArg(x_2, x_3, x_4, x_7);
x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lake_processOptions___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_inc_ref(x_2);
x_5 = lean_alloc_closure((void*)(l_Lake_processOptions___lam__0), 2, 1);
lean_closure_set(x_5, 0, x_2);
x_6 = l_Lake_processOptions___closed__0;
x_7 = l_Lake_collectArgs___redArg(x_1, x_2, x_3, x_6);
x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_5);
return x_8;
}
}
lean_object* initialize_Init_Data_Array_Basic(uint8_t builtin);
lean_object* initialize_Init_Data_String_TakeDrop(uint8_t builtin);
lean_object* initialize_Init_Data_String_Slice(uint8_t builtin);
lean_object* initialize_Init_Data_String_Search(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_Util_Cli(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init_Data_Array_Basic(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_TakeDrop(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Slice(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Search(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_shortOptionWithSpace___closed__0 = _init_l_Lake_shortOptionWithSpace___closed__0();
lean_mark_persistent(l_Lake_shortOptionWithSpace___closed__0);
l_Lake_shortOptionWithSpace___closed__1 = _init_l_Lake_shortOptionWithSpace___closed__1();
lean_mark_persistent(l_Lake_shortOptionWithSpace___closed__1);
l_Lake_longOptionOrSpace___closed__0 = _init_l_Lake_longOptionOrSpace___closed__0();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__0);
l_Lake_longOptionOrSpace___closed__1 = _init_l_Lake_longOptionOrSpace___closed__1();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__1);
l_Lake_longOptionOrSpace___closed__2 = _init_l_Lake_longOptionOrSpace___closed__2();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__2);
l_Lake_longOptionOrSpace___closed__3 = _init_l_Lake_longOptionOrSpace___closed__3();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__3);
l_Lake_longOptionOrSpace___closed__4 = _init_l_Lake_longOptionOrSpace___closed__4();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__4);
l_Lake_longOptionOrSpace___closed__5 = _init_l_Lake_longOptionOrSpace___closed__5();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__5);
l_Lake_longOptionOrSpace___closed__6 = _init_l_Lake_longOptionOrSpace___closed__6();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__6);
l_Lake_longOptionOrSpace___closed__7 = _init_l_Lake_longOptionOrSpace___closed__7();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__7);
l_Lake_longOptionOrSpace___closed__8 = _init_l_Lake_longOptionOrSpace___closed__8();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__8);
l_Lake_longOptionOrSpace___closed__9 = _init_l_Lake_longOptionOrSpace___closed__9();
lean_mark_persistent(l_Lake_longOptionOrSpace___closed__9);
l_Lake_longOptionOrSpace___boxed__const__1 = _init_l_Lake_longOptionOrSpace___boxed__const__1();
lean_mark_persistent(l_Lake_longOptionOrSpace___boxed__const__1);
l_Lake_longOptionOrSpace___redArg___boxed__const__1 = _init_l_Lake_longOptionOrSpace___redArg___boxed__const__1();
lean_mark_persistent(l_Lake_longOptionOrSpace___redArg___boxed__const__1);
l_Lake_longOptionOrEq___closed__0 = _init_l_Lake_longOptionOrEq___closed__0();
lean_mark_persistent(l_Lake_longOptionOrEq___closed__0);
l_Lake_longOptionOrEq___closed__1 = _init_l_Lake_longOptionOrEq___closed__1();
lean_mark_persistent(l_Lake_longOptionOrEq___closed__1);
l_Lake_longOptionOrEq___boxed__const__1 = _init_l_Lake_longOptionOrEq___boxed__const__1();
lean_mark_persistent(l_Lake_longOptionOrEq___boxed__const__1);
l_Lake_longOptionOrEq___redArg___boxed__const__1 = _init_l_Lake_longOptionOrEq___redArg___boxed__const__1();
lean_mark_persistent(l_Lake_longOptionOrEq___redArg___boxed__const__1);
l_Lake_longOption___lam__2___boxed__const__1 = _init_l_Lake_longOption___lam__2___boxed__const__1();
lean_mark_persistent(l_Lake_longOption___lam__2___boxed__const__1);
l_Lake_longOption___boxed__const__1 = _init_l_Lake_longOption___boxed__const__1();
lean_mark_persistent(l_Lake_longOption___boxed__const__1);
l_Lake_longOption___boxed__const__2 = _init_l_Lake_longOption___boxed__const__2();
lean_mark_persistent(l_Lake_longOption___boxed__const__2);
l_Lake_longOption___redArg___boxed__const__1 = _init_l_Lake_longOption___redArg___boxed__const__1();
lean_mark_persistent(l_Lake_longOption___redArg___boxed__const__1);
l_Lake_longOption___redArg___boxed__const__2 = _init_l_Lake_longOption___redArg___boxed__const__2();
lean_mark_persistent(l_Lake_longOption___redArg___boxed__const__2);
l_Lake_option___lam__4___boxed__const__1 = _init_l_Lake_option___lam__4___boxed__const__1();
lean_mark_persistent(l_Lake_option___lam__4___boxed__const__1);
l_Lake_option___boxed__const__1 = _init_l_Lake_option___boxed__const__1();
lean_mark_persistent(l_Lake_option___boxed__const__1);
l_Lake_option___boxed__const__2 = _init_l_Lake_option___boxed__const__2();
lean_mark_persistent(l_Lake_option___boxed__const__2);
l_Lake_option___redArg___boxed__const__1 = _init_l_Lake_option___redArg___boxed__const__1();
lean_mark_persistent(l_Lake_option___redArg___boxed__const__1);
l_Lake_option___redArg___boxed__const__2 = _init_l_Lake_option___redArg___boxed__const__2();
lean_mark_persistent(l_Lake_option___redArg___boxed__const__2);
l_Lake_processOptions___closed__0 = _init_l_Lake_processOptions___closed__0();
lean_mark_persistent(l_Lake_processOptions___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
